package com.graph;

public class Edge {

	private Vertex src;
	
	private Vertex dst;
	
	private String srcAttr;
	
	private String dstAttr;
	
	public Edge(Vertex src, Vertex dst, String srcAttr, String dstAttr) {
		this.src = src;
		this.dst = dst;
		this.srcAttr = srcAttr;
		this.dstAttr = dstAttr;
	}

	public Vertex getSrc() {
		return src;
	}
	
	public Vertex getDst() {
		return dst;
	}
	
	@Override
	public String toString() {
		return "<Edge> " + src.getLabel() + "." + srcAttr + " -> " + dst.getLabel() + "." + dstAttr + "\n";
	}
	
	
}
